<!--
 * @Description  : 数据更新与维护 详情页
 * @Author       : zhao
 * @Date         : 2022-07-14 11:10:45
 * @LastEditors  : zhao
 * @LastEditTime : 2023-01-30 08:55:10
-->
<template>
    <div class="updataMaintain">
        <ztable :searchType="searchType" :tableHeader="tableHeader" :title="'数据详情'" :back="true" />
    </div>
</template>

<script setup lang='ts'>
import { ref, onMounted } from 'vue';
import table from '/@/components/zTable/table.vue';
import ztable from '/@/components/zTable/index.vue';
import search from '/@/components/zTable/search.vue';
import pagination from '/@/components/zTable/pagination.vue';
import BFData from '/@/views/zUpdataAndMaintain/updataMaintainDetails.ts';
import { useTableInfo } from '/@/stores/ztable'


const searchType = ref(BFData.searchType);
const tableHeader = ref(BFData.tableHeader);

const { zTable, zTableFunction, getTableData } = useTableInfo()
const initData = async () => {
    let useTableInfos = <any>useTableInfo()
    useTableInfos.$reset()
    const row = <any>zTable.rowData
    // useTableInfos.zTable.routerUrl = "/updataAndMaintain/details"
    useTableInfos.searchData.archiveSn = row.sn
    useTableInfos.zTable.mdName.name = "useUpdataMaintain"
    useTableInfos.zTable.mdName.url = "getArchiveFileList"
    useTableInfos.zTableType.border = true
    useTableInfos.zTableType.menu = true
    useTableInfos.zTableType.selection = false
    useTableInfos.zTable.menuData = [
        { name: '成果资料' },
        { name: '原始资料' },


    ]


    // await getTableData()
}
initData()
onMounted(() => {
})
</script>
<style lang='scss' scoped>
</style>